// Text.h: interface for the CText class.
//
//////////////////////////////////////////////////////////////////////

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DrawElement.h"

class CText :public CDrawElement
{
    DECLARE_SERIAL(CText)
public:
	void setValue(CString value);
	int alpha;
	void parseFontStr(CString str);
	CString getValue();
	CString href;
	COLORREF BgColor;
	void Draw(CDC* pDC);
	void ShowProperties();
	void EditFindDlgShowProperties(INT p,INT q);
	int BkMode;
	CString MyText;
	LOGFONT MyFont;
	COLORREF MyColor;

	CText();
	virtual ~CText();
	void Serialize(CArchive & ar);
	//font="size:style:name:color:bcolor:alpha"
	CString getFontStyle();
	CString getHref();
};